<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>下载列表</title>
<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css">
<script src="/layuiadmin/layui/layui.js"></script>
<script src="/document/document.js"></script>
</head>
<body>
<div class="layui-main">
    <blockquote class="layui-elem-quote">DRYCMS完整源码下载</blockquote>
    <blockquote class="layui-elem-quote layui-quote-nm">同一个用户下载源码的次数是有限制的</blockquote>
    <table class="layui-table">
        <thead>
            <tr>
                <th>版本</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody id="codeBox">
            {% for item in list %}
            <tr>
                <td>{{ item }}</td>
                <td><a href="javascript:void(0);" url="/Html/Order/download?id={{ id }}&version={{ item }}">下载</a></td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
</div>
<script>
layui.use(["jquery", "table", "element"], function($, table, element){
    $("a").click(function(){
        var url = $(this).attr("url") + "&device=html&token=" + getCookie("token");
        window.open(url);
    });
});
</script>
</body>
</html>